<%@page import="com.crm.entity.Clientdet"%>
<%@page import="com.crm.entity.Quotation"%>
<%@page import="com.crm.entity.Opportunity,com.crm.beans.EnqSummary"%>
<%@page language="java" import="java.sql.*,java.util.*"%>
<%List<Opportunity> opprtlist =(List<Opportunity>)request.getAttribute("opprtunity");%>
<%List<Quotation> quotlist =(List<Quotation>)request.getAttribute("allquot");%>
<div class="box2">
        <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
          <tr>
            <td width="36" align="center" valign="middle" background="images/table-box.jpg"  style="background-repeat:repeat-x">S.No </td>
            <td width="162" align="center" valign="middle" background="images/table-box.jpg"  style="background-repeat:repeat-x bgcolor="#FFFFFF">Quotation</td>
            <td width="140" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Enquiry </td>
            <td width="138" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Given QuotDetails</td>
            <td width="186" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Status</td>
           
          </tr>
             <%
              if(quotlist!=null){
            	  System.out.println("the size of the pr list is "+quotlist.size());
	      	for(int i=0;i<quotlist.size();i++){
	      	%>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><%=i+1%></td>
            <td align="center" valign="top" bgcolor="#FFFFFF">
                <input type="text" value="<%=quotlist.get(i).getQuotno()%>" name="refnum" id="refnum" DISABLED readonly="readonly" />
            </td>
           <td align="center" valign="top" bgcolor="#FFFFFF">
                <input type="text" value="<%=quotlist.get(i).getEnqid().getRefNum()%>" name="refnum" id="refnum" DISABLED readonly="readonly" />
            </td>
            <td align="center" valign="top" bgcolor="#FFFFFF">
             <a href="#" onclick="javascript:open_new_window('<%=application.getContextPath()%>/newquot/get_history.do?quotid=<%=quotlist.get(i).getQuotno()%>')" class="linkclass">QuotationPDF</a>
                
            </td>
            <td align="center" valign="top" bgcolor="#FFFFFF">
            <a href="<%=application.getContextPath()%>/pendingQuot/closeQuot.do?refid=<%=quotlist.get(i).getEnqid().getId()%>" class="linkclass" ><%=quotlist.get(i).getRemarks()%></a>
            </td>
          </tr>
          <%}
	      	}
	      	%>

        </table>
      </div>
      <script>
function open_new_window(url) {
	  window.open(url,"some_name","width=500,height=300,left=200,top=10");
	}
</script>